package com.learn.xiaoha.sqlsession.mapper;

import com.learn.xiaoha.sqlsession.annotion.SimpleSelect;
import com.learn.xiaoha.sqlsession.annotion.SimpleUpdate;
import com.learn.xiaoha.sqlsession.entity.Student;

import java.util.List;

public interface StudentMapper {
    @SimpleSelect("select * from student")
    public List<Student> findAll();
    @SimpleUpdate("insert into student (name,lover) value ({#name},{#lover})")
    public void insert(Student student);
}
